﻿using System;
using Enyim.Caching;
using Ayatta.Contract;
using System.Web.Mvc;

namespace Web.Pay.Controllers
{
    public class HomeController : BaseController
    {

        public HomeController(Lazy<IInfrastructureService> infrastructure, Lazy<IPassportService> passport, Lazy<IAccountService> account, Lazy<IStoreService> store, Lazy<ITradeService> trade, Lazy<IPlayService> play, Lazy<IMiscService> misc, Lazy<IExtraService> extra, IMemcachedClient memcachedClient)
            : base(infrastructure, passport, account, store, trade, play, misc, extra, memcachedClient)
        {
        }

        public ActionResult Index()
        {
            //var s = Passport.Value.UserGet(1, true, true);
            //var t = Passport.Value.UserGet(1);
           // var data = Passport.Value.CacheGet();
            var model = PaymentEBankList();
           
            return Json(model, JsonRequestBehavior.AllowGet);
        }

    }
}
